package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * <p>
 * 员工预约表
 * </p>
 *
 * @author Mr.Xiayh
 * @since 2024-05-31
 */
@Getter
@Setter
@ToString
@TableName("workers_and_booked_time")
@ApiModel(value = "WorkersAndBookedTime对象", description = "员工预约表")
public class WorkersAndBookedTime implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键id")
    @TableId(value = "wbt_id", type = IdType.AUTO)
    private Integer wbtId;

    @ApiModelProperty("业务ID")
    private Integer bcId;

    @ApiModelProperty("员工ID")
    private Integer workersId;

    @ApiModelProperty("时间段 1 上午 0 下午")
    private Byte booked;

    @ApiModelProperty("默认为 10 个余额")
    private Integer bookedNum;

    @ApiModelProperty("预约时间 如 2024 06 01")
    private LocalDate bookedTime;

    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty("修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @ApiModelProperty("状态码 1 有效 0无效")
    private Boolean flag;
}
